<?php

namespace Acme\DemoBundle\DependencyInjection;

use Symfony\Component\HttpFoundation\Session\Session;

use Acme\DemoBundle\Entity\TUser;

class MyUser
{
    public function setUser(TUser $objUser, Session $session)
    {
        $session->set("user_id", $objUser->getId());
        $session->set("user_name", $objUser->getUserName());
        $session->set("user_type", $objUser->getMUserTypeId());
        $session->set("user_full_name", $objUser->getFullName());
    }
}
